// vite.config.ts
import { defineConfig, loadEnv } from "file:///C:/Users/%E8%8A%9D%E9%A6%99%E7%99%BD%E6%A1%83%E8%8A%8B%E6%B3%A5/Desktop/storage-admin-base/node_modules/.pnpm/vite@4.0.4_@types+node@18.11.18_sass@1.58.3_terser@5.29.2/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/%E8%8A%9D%E9%A6%99%E7%99%BD%E6%A1%83%E8%8A%8B%E6%B3%A5/Desktop/storage-admin-base/node_modules/.pnpm/@vitejs+plugin-vue@4.0.0_vite@4.0.4_@types+node@18.11.18_sass@1.58.3_terser@5.29.2__vue@3.2.45/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import { viteMockServe } from "file:///C:/Users/%E8%8A%9D%E9%A6%99%E7%99%BD%E6%A1%83%E8%8A%8B%E6%B3%A5/Desktop/storage-admin-base/node_modules/.pnpm/vite-plugin-mock@2.9.6_mockjs@1.1.0_rollup@3.12.0_vite@4.0.4_@types+node@18.11.18_sass@1.58.3_terser@5.29.2_/node_modules/vite-plugin-mock/dist/index.js";
import { createSvgIconsPlugin } from "file:///C:/Users/%E8%8A%9D%E9%A6%99%E7%99%BD%E6%A1%83%E8%8A%8B%E6%B3%A5/Desktop/storage-admin-base/node_modules/.pnpm/vite-plugin-svg-icons@2.0.1_vite@4.0.4_@types+node@18.11.18_sass@1.58.3_terser@5.29.2_/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import VueSetupExtend from "file:///C:/Users/%E8%8A%9D%E9%A6%99%E7%99%BD%E6%A1%83%E8%8A%8B%E6%B3%A5/Desktop/storage-admin-base/node_modules/.pnpm/vite-plugin-vue-setup-extend@0.4.0_vite@4.0.4_@types+node@18.11.18_sass@1.58.3_terser@5.29.2_/node_modules/vite-plugin-vue-setup-extend/dist/index.mjs";
import vueJsx from "file:///C:/Users/%E8%8A%9D%E9%A6%99%E7%99%BD%E6%A1%83%E8%8A%8B%E6%B3%A5/Desktop/storage-admin-base/node_modules/.pnpm/@vitejs+plugin-vue-jsx@3.0.0_vite@4.0.4_@types+node@18.11.18_sass@1.58.3_terser@5.29.2__vue@3.2.45/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import svgLoader from "file:///C:/Users/%E8%8A%9D%E9%A6%99%E7%99%BD%E6%A1%83%E8%8A%8B%E6%B3%A5/Desktop/storage-admin-base/node_modules/.pnpm/vite-svg-loader@4.0.0/node_modules/vite-svg-loader/index.js";
var __vite_injected_original_dirname = "C:\\Users\\\u829D\u9999\u767D\u6843\u828B\u6CE5\\Desktop\\storage-admin-base";
var vite_config_default = defineConfig((config) => {
  const { command, mode } = config;
  const env = loadEnv(mode, process.cwd());
  return {
    base: "./",
    plugins: [
      vue(),
      viteMockServe({
        // 只在开发阶段开启 mock 服务,mock和后端服务器接口能共存，可以通过配置来区分
        localEnabled: command === "serve"
      }),
      createSvgIconsPlugin({
        iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
        symbolId: "icon-[dir]-[name]"
      }),
      // * vite 可以使用 jsx/tsx 语法
      vueJsx(),
      // * name 可以写在 script 标签上
      VueSetupExtend(),
      // * vite-svg-loader支持，可以直接引入svg图标当作组件使用
      svgLoader()
    ],
    resolve: {
      alias: {
        "@": path.resolve(__vite_injected_original_dirname, "src")
      }
    },
    css: {
      preprocessorOptions: {
        scss: {
          javascriptEnabled: true,
          additionalData: '@import "./src/styles/variable.scss";'
        }
      }
    },
    server: {
      host: "localhost",
      port: Number(env.VITE_APP_PORT),
      proxy: {
        [env.VITE_APP_BASE_API]: {
          target: "http://139.198.152.148:8100",
          changeOrigin: true,
          rewrite: (path2) => path2.replace(/^\/dev-api/, "")
        }
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1l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